package Stream;

import java.util.stream.Stream;

public class Stream7 {
    public static void main(String[] args) {
        Stream<String> stream = Stream.of("狗","人","鸡","鸭","鹅");
        Stream<String> stream2 = stream.skip(2);
            stream2.forEach(s-> System.out.println(s));
            //跳过前面2个元素
    }
}
